import react from 'react';
import ReactDOM from 'react-dom';

// 用  react 官方的 jsx 方法
console.log(react, 'log1');

const App = () => {
	return (
		<div>
			<h1>
				<Child />
			</h1>
		</div>
	);
};

function Child() {
	return <h1>child</h1>;
}

console.log(<App />, 'log11');

// 自己调试 先在这 打个断点
debugger;
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
	<App />
);
